import { makeAutoObservable } from 'mobx'
import { Dimensions } from 'react-native'

class Variable {
  screen = {
    width: 0,
    height: 0,
  }
  ipAddress = 'http://192.168.43.9'
  get resourceURL() {
    return this.ipAddress + ':4444/'
  }
  // ipAddress = 'http://localhost'
  // ipAddress = 'http://169.254.95.138:4444/'
  constructor() {
    this.screen = Dimensions.get('screen')
    makeAutoObservable(this)
    console.log(this, 'variable')
  }
}
const variable = new Variable()
export default variable
